package com.platform.modules.wallet.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.platform.common.web.domain.BaseEntity;
import com.platform.modules.wallet.enums.IdentityStatusEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 用户钱包实体类
 * </p>
 */
@Data
@TableName("wallet")
@Accessors(chain = true)
public class Wallet extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.INPUT)
    private Long userId;

    /**
     * 账户金额
     */
    private Integer amount;

    /**
     * 平衡金额
     */
    private Integer balance;

    /**
     * 姓名
     */
    private String name;

    /**
     * 身份证号码
     */
    private String identityCard;

    /**
     * 身份认证状态
     */
    private IdentityStatusEnum identityStatus;

    /**
     * 认证照片地址
     */
    private String photoUrl;
    private String faceUrl;

    /**
     * 银行卡号
     */
    private String cardNumber;
    private String bankName;

    private String payPassword;

    /**
     * 钱包转态 0异常 1正常
     */
    private Short status;

    private Date createTime;
    private Date updateTime;

}
